package com.yuanfeng.business.dto;

import com.yuanfeng.commoms.constant.CommonType;
import com.yuanfeng.commoms.dto.userms.UserTokenBeanDTO;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author Administrator
 */
@Data
public class ShopClassInfoDTO extends UserTokenBeanDTO {

    /**
     * 店铺分类id
     */
    private Integer shopClassId;

    /**
     * 店铺分类名称
     */
    private String shopClassName;

    /**
     * 保证金数额(元)
     */
    private BigDecimal shopClassDeposit;

    /**
     * 显示次序
     */
    private Short shopClassDisplayorder;

    /**
     * 店铺租金
     */
    private BigDecimal shopPay;

    /**
     * 1普通店铺 2供应商店铺
     */
    private Integer shopType = CommonType.ShopType.COMMON_SHOP.getCode();

    public Integer getShopType() {
        return (null == shopType || shopType.intValue() == 0) ? CommonType.ShopType.COMMON_SHOP.getCode() : shopType;
    }

}
